package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.atguigu.gulimall.product.vo.AttrGroupRelationVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性&属性分组关联
 *
 * @author taotao
 * @date 2021-07-13 15:14:30
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    /**
     * 批量删除关联关系
     * @param entities：表示要删除的实体
     **/
    void deleteBatchRelation(@Param("entities") List<AttrAttrgroupRelationEntity> entities);

    /**
     * 批量插入关联关系
     * @param vos:插入的数据
     **/
    void saveBatch(@Param("vos") List<AttrGroupRelationVo> vos);
}
